<template>
  <!-- 根据地址不同展示不同的组件 -->
  <router-view></router-view>
  <!-- <van-tabbar v-model="active" route placeholder fixed>
    <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
    <van-tabbar-item icon="apps-o" to="/cate">分类</van-tabbar-item>
    <van-tabbar-item icon="cart-o" to="/cart" :badge="cartArr.length">购物车</van-tabbar-item>
    <van-tabbar-item icon="contact-o" to="/my">我的</van-tabbar-item>
  </van-tabbar> -->
</template>

<script setup>
// import { ref } from 'vue';
import { loadCartList } from "./store/cart";
// let active = ref(0);
let token = localStorage.getItem("token");
if (token) loadCartList();
// console.log(cartArr.value.length);

</script>

<style></style>